<div id = "body">

<h1>Japanese Bakery</h1>

<a href = "<?php echo base_url(); ?>admin/japanese-bakery/add" class = "add"><img src = "<?php echo base_url(); ?>assets/modules/admin/image/icon-add.png">&nbsp;&nbsp;&nbsp;Add Japanese Bakery</a>

<div class = "page">
<?
  //$count = $db->countOfAll('promotion');
  //$start = setpage($count);
?>
</div>

<div class = "clear"></div>

<table class ="list">
  <tr>
    <th scope="col" width = "100">&nbsp;</th>
    <th scope="col">Title (en)</th>
    <th scope="col">Title (jp)</th>
    <th scope="col" width = "50">Edit</th>
    <th scope="col" width = "50">Delete</th>
  </tr>
<?
 foreach ($news_list as $v) {
?>
  <tr>
    <td><img src="<?php echo base_url(),'assets/image/japanese-bakery/',$v->jpb_id,'/',$v->jpb_img ; ?>" style="width:100px;" /></td>
    <td><?php echo $v->jpb_en; ?></td>
    <td><?php echo $v->jpb_jp; ?></td>
    <td><a href = "<?php echo base_url(); ?>admin/japanese-bakery/edit/<?php echo $v->jpb_id; ?>" class = "btn">edit</a></td>
    <td><a href = "<?php echo base_url(); ?>admin/japanese-bakery/del/<?php echo $v->jpb_id; ?>" class = "btn" onClick = "return confirmSubmit()">delete</a></td>
  </tr>
<?
  }
?>
</table>

</div>